package com.icinfo.cloud.provider.punish.controller;

import com.icinfo.cloud.provider.punish.external.dto.CheckIdentityDto;
import com.icinfo.cloud.provider.punish.service.ExternalService;
import com.icinfo.framework.common.web.Result;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 外部接口堆积 controller
 *
 * @author Administrator
 */
@RestController
@RequestMapping("/app/external")
public class ExternalController {

    @Resource
    private ExternalService externalService;

    /**
     *身份证、姓名核验
     * @author liyafeng
     * @date 2023/3/14
      * @param dto
     * @return {@link Result< String>}
     */
    @RequestMapping("/nation/population/checkIdentity")
    public Result<String> checkIdentity(@RequestBody @Validated CheckIdentityDto dto){
        return externalService.checkIdentity(dto);
    }




}
